package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserWorks;
import com.ecoolex.ying.space.entity.UserWorksExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserWorksMapper {
    long countByExample(UserWorksExample example);

    int deleteByExample(UserWorksExample example);

    int deleteByPrimaryKey(Integer worksId);

    int insert(UserWorks record);

    int insertSelective(@Param("record") UserWorks record, @Param("selective") UserWorks.Column ... selective);

    UserWorks selectOneByExample(UserWorksExample example);

    List<UserWorks> selectByExample(UserWorksExample example);

    UserWorks selectByPrimaryKey(Integer worksId);

    UserWorks selectByPrimaryKeyWithLogicalDelete(@Param("worksId") Integer worksId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserWorks record, @Param("example") UserWorksExample example, @Param("selective") UserWorks.Column ... selective);

    int updateByExample(@Param("record") UserWorks record, @Param("example") UserWorksExample example);

    int updateByPrimaryKeySelective(@Param("record") UserWorks record, @Param("selective") UserWorks.Column ... selective);

    int updateByPrimaryKey(UserWorks record);

    int batchInsert(@Param("list") List<UserWorks> list);

    int batchInsertSelective(@Param("list") List<UserWorks> list, @Param("selective") UserWorks.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserWorksExample example);

    int logicalDeleteByPrimaryKey(Integer worksId);
}